package indi.kider.server.employee.service;

import indi.kider.common.model.employee.Waiter;
import pers.vankid.common.utils.page.PageRequest;
import pers.vankid.common.utils.page.PageResponse;

import java.util.List;

/**
 * Created by shixj on 2018/4/26.
 */
public interface WaiterService {
    /**
     * 根据id获取
     * @param id
     * @return
     */
    Waiter getWaiterById(Long id);

    /**
     * 获取分页查询
     * @param request
     * @return
     */
    PageResponse<List<Waiter>> getWaiterPages(PageRequest<Waiter> request);

    /**
     * 不分页查询
     * @param waiter
     * @return
     */
    List<Waiter>getWaiters(Waiter waiter);

    /**
     * 新增
     * @param waiter
     * @return
     */
    Waiter add(Waiter waiter) throws Exception;

    /**
     * 更新
     * @param waiter
     * @return
     */
    Waiter modify(Waiter waiter) throws Exception;
    /**
     * 删除
     */
    void delById(Long id);
}
